Recon
Overview
Recon files are used to reconcile transactions. The merchant portal provides an abriged version of the recon file.
Recon File Format PA0069
The extended Clearing Reconciliation File Format includes back-office transactions – other debits and credits, not directly related to trading, that were considered in determining the value to be cleared. It can therefore be used to reconcile the transactions processed for the day against the result of clearing.
Clearing Reconciliation files are fixed-length text files. They are made up of records that are delimited with a carriage return line feed character. Each record is read and imported on a line by line basis. The filename must comply exactly with the following format: TR_Clearing_Recon_V2_CAID_YYYYMMDDhhmmss.txt where CAID represents the card acceptor ID code and YYYYMMDDhhmmss represents the date and time when the file was generated. Depending on client requirements, a set of Clearing Reconciliation files can be collected into a ZIP archive and delivered daily.
Reconciliation files contain three types of record:
Header Record
The header should be at the beginning of the file, consisting of:
Record Identifier
<alphanumeric | mandatory>
: (2 characters) Contains the characters HDReconciliation Date
<date | mandatory>
: (8 characters) YYYYMMDD formatFile Generation No
<numeric | mandatory>
: (4 characters) Unique per file. Numbering began at 1 and increments by 1 for each file sent. It will start again at 1 when 9999 is reached. Left-padded with zerosFile Type
<alphanumeric | mandatory>
: (2 characters) Describes the file type- CR: Credit only
- DR: debit only
- CD: both
- NA: other
Data Direction
<alphanumeric | mandatory>
: (3 characters) Describes data direction- IN: Inbound data
- OUT: Outbound data
Test/Live indicator
<alphanumeric | mandatory>
: (4 characters) Describes if the data is test data or live data- LIVE: Actual business data
- TEST: Test data
Settlement Mode
<alphanumeric | optional>
: (5 characters) This applies only to transactions cleared by the PSP- GROSS: Gross settlement
- NETTS: nett settlement
Detail Record
One or more records, which make up the body of the file, consisting of:
Record Identifier
<alphanumeric | mandatory>
: (2 characters) Contains the characters DITransaction Date Time
<date | mandatory>
: (14 characters) YYYYMMDDhhmmss formatCard acceptor ID code
<alphanumeric | optional>
: (8 characters) The Merchant Terminal ID of the applicable Merchant. Right-pad with spacesRetrieval reference number
<alphanumeric | mandatory>
: (12 characters) A unique transaction identifier. Note This value is returned to the notification URL provided in thepayments/pay
API callTransaction Trace ID
<numeric | mandatory>
: (6 characters) A secondary transaction identifierAuthorisation ID
<alphanumeric | mandatory optional>
: (xx characters) If absent, fill with spacesTransaction Amount
<numeric | mandatory>
: (12 characters) The total amount of the transaction, expressed as a positive number in cents. Left-padded with zerosTransaction Type Code
<numeric | mandatory>
: (2 characters) Transaction type code as defined in ISO 8583. Refer to the transaction type table for detailsAccount Reference
<numeric | mandatory>
: (19 characters) Primary Account Number, right-padded with spaces. Mandatory but can be masked by replacing characters 7-12 with asterisks Can be omitted filling with spacesCard Expiry Date
<numeric | mandatory>
: (4 characters) Mandatory but can be omitted by filling with zeros If no PAN is supplied, default to 5012Budget Period
<numeric | mandatory>
: (2 characters) Defaults to 00 on importCurrency Code
<numeric | mandatory>
: (3 characters) ISO 4217 Currency codeTransaction Capture Date
<numeric | mandatory>
: (8 characters) The business date when the transaction occurred, in YYYYMMDD formatTransaction Settlement Date
<numeric | mandatory>
: (8 characters) The business date when the transaction was settled between acquirer and issuer, in YYYYMMDD formatTransaction Fee
<numeric | mandatory>
: (12 characters) The transaction fee or interchange fee applied to the transaction, left-padded with zerosUUID
<tyalphanumericpe | mandatory>
: (36 characters) The unique transaction identifier, expressed in GUID (Globally Unique Identifier) formatAcquiring Institution ID Code
<numeric | mandatory>
: (11 characters)- Optional: The ID of the institution originating the transaction, right-padded with spaces.
- Mandatory: but can be omitted by filling with spaces.
Receiving Institution ID Code
<numeric | mandatory>
: (11 characters)- Optional: The ID of the institution originating the transaction, right-padded with spaces.
- Mandatory: but can be omitted by filling with spaces.
Message Type
<numeric | optional>
: (4 characters) A classification for the high-level function of a transaction messageResponse Code
<alphanumeric | optional>
: (2 characters) A code describing the outcome of a transaction messageRequest Transaction Amount
<numeric | optional>
: (12 characters) The transaction amount of the original request transactionCard Reference
<alphanumeric | optional>
: (12 characters) Right-Padded with spacesCashback Amount
<numeric | optional>
: (12 characters) The amount of cashback included in the transaction, expressed as a positive number in cents. Left-padded with zerosRetrieval Reference Number Extended
<numeric | optional>
: (99 characters) An additional field for carrying reference information, typically an order number. Right-padded with spaces. Note When using thepayments/pay
endpoint this value is populated by the value passed in PaymentRequestId and can be used as a unique identifierSequence Number
<numeric | optional>
: (5 characters) The number of the record within the fileExtended Transaction Type
<string | optional>
: (5 characters) This field defines the general transaction type, providing more detail about the type of transaction. It allows fees collected from the merchant to be distinguished from other transactions. Values between 2301 and 23ZZ indicate merchant feesDistribution Sign
<string | optional>
: (5 characters) Indicates debit or creditDistribution Party Type
<string | optional>
: (50 characters) Indicates the type of party to which the record appliesDistribution Party Account Reference
<string | optional>
: (50 characters) The reference that is passed in the clearing instructionDistribution Party Name
<string | optional>
: (50 characters) The name of the distribution party in the back officeVAT Calculation
<string | optional>
: (15 characters) Indicates whether a VAT calculation has been performedBack Office Transaction Amount
<numeric | optional>
: (12 characters) Indicates the value of the transaction in the back officeVAT
<numeric | optional>
: (12 characters) Indicates the VAT value in the case of a VAT-exclusive calculationCleared by PSP
<string | optional>
: (1 characters)- Y: Transactions that have been cleared by the PSP and the funds have been paid to the merchant.
- N: Transactions that are to be cleared by another party.
Trailer Record
One record at the end of the file, consisting of:
Record Identifier
<alphanumeric | mandatory>
: (2 characters) Contains the characters HDReconciliation Date
<date | mandatory>
: (8 characters) YYYYMMDD formatFile Generation No
<numeric | mandatory>
: (4 characters) Unique per file. Numbering began at 1 and increments by 1 for each file sent. It will start again at 1 when 9999 is reached. Left-padded with zerosTotal Records
<numeric | mandatory>
: (8 characters) Total number of records in the file, including the header and trailer. Left-padded with zerosTotal DR Records
<numeric | mandatory>
: (6 characters) Total number of debit records in the file. Left-padded with zeros. If transactions can neither be classified as Debit or Credit types, populate this field with 6 zerosTotal CR Records
<numeric | mandatory>
: (6 characters) Total number of credit records in the file. Left-padded with zeros. If transactions can neither be classified as Debit or Credit types, populate this field with 6 zerosTotal DR Value Cleared by PSP
<numeric | mandatory>
: (12 characters) Total value of those debit records in the file that are marked as cleared by the PSP, given in cents, left-padded with zeros. If transactions can neither be classified as debit or credit types, populate this field with 12 zerosTotal CR Value Cleared by PSP
<numeric | mandatory>
: (12 characters) Total value of those credit records in the file that are marked as cleared by the PSP, given in cents, left-padded with zeros. If transactions can neither be classified as debit or credit types, populate this field with 12 zerosTotal DR Value Not Cleared by PSP
<numeric | mandatory>
: (12 characters) Total value of those debit records in the file that are marked as not cleared by the PSP, given in cents, left-padded with zeros. If transactions can neither be classified as debit or credit types, populate this field with 12 zerosTotal CR Value Not Cleared by PSP
<numeric | mandatory>
: (12 characters) Total value of those credit records in the file that are marked as not cleared by the PSP, given in cents, left-padded with zeros. If transactions can neither be classified as debit or credit types, populate this field with 12 zeros